package com.woniuxy.usercoachassemble.service;

import com.woniuxy.usercoachassemble.commons.ToData;
import com.woniuxy.usercoachassemble.entity.Account;
import com.woniuxy.usercoachassemble.entity.CoachInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.usercoachassemble.entity.Userinfo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Lucas
 * @since 2020-07-09
 */
public interface CoachInfoService extends IService<CoachInfo> {

    /**
     * @description:TODO(场馆动态条件查询教练)
     * @param nickname
     * @param username
     * @param tel
     * @return:  Userinfo
     * @author: Fy浪迹、
     * @date: 2020/7/18 14:11
     */
    ToData selectCoachInfoByDynamic(String nickname, String username, String tel, Long current, Long size);


    public void insertAccountMoney(int userId, String accountName);

    Account selectAccount(int userId);

    //用户查询教练
    List<Map<String, Object>> slectCaoch(Boolean value1,Integer money,Integer cid);
    //统计教练交易次数
    int selectCount(Integer uid);


    List<Map<String,Object>> selectAllCoach();
}
